﻿using System;

namespace DevicesView.Entity
{
    public class Doctor
    {
        private string code;
        public string Id { get; set; }
        public string OrgCode { get; set; }

        public string Code
        {
            get
            {
                if (string.IsNullOrEmpty(code))
                    code = Id;
                return code;
            }
            set { code = value; }
        }
        public string Name { get; set; }

        public override string ToString()
        {
            return Name;
        }


        /// <summary>
        /// 机构ID。
        /// </summary>
        public int OrgId
        {
            get;
            set;
        }

        /// <summary>
        /// 登录名称。
        /// </summary>
        public string LoginName
        {
            get;
            set;
        }


        /// <summary>
        /// 身份证号。
        /// </summary>

        public string IDNumber
        {
            get;
            set;
        }

        /// <summary>
        /// 性别。
        /// </summary>

        public int Gender
        {
            get;
            set;
        }

        /// <summary>
        /// 生日。
        /// </summary>

        public DateTime BirthDate
        {
            get;
            set;
        }

        /// <summary>
        /// 电话号码。
        /// </summary>

        public string PhoneNumber
        {
            get;
            set;
        }

        /// <summary>
        /// 状态。
        /// </summary>

        public int Status
        {
            get;
            set;
        }

        /// <summary>
        /// 创建时间。
        /// </summary>
        public DateTime Creating
        {
            get;
            set;
        }

        public int TreatmentStatus { get; set; }



    }
}
